﻿using EPiServer;
using EPiServer.DynamicContent;

namespace SocialPack.modules.SocialPack.DynamicContent.Delicious
{
    [DynamicContentPlugIn(
        DisplayName = "Delicious bookmark",
        Description = "Shows a Delicious bookmark button",
        ViewUrl = "~/modules/socialpack/dynamiccontent/delicious/bookmark.ascx")]
    public partial class Bookmark : UserControlBase
    {
        public string DisplayText { get; set; }

        protected override void OnLoad(System.EventArgs e)
        {
            base.OnLoad(e);

            if (!string.IsNullOrWhiteSpace(this.DisplayText))
            {
                this.BookmarkControl.Text = DisplayText;
            }
        }
    }
}